package com.qf.face.config;

import com.baidu.aip.face.AipFace;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 30909
 * 百度人脸识别的的配置信息
 */
@Configuration
public class BaiduConfig {

    /**
     * /设置APPID/AK/SK
     */
    public static final String APP_ID = "24930090";
    public static final String API_KEY = "h9onKGjVlFvQu7hYYxs7Eo9c";
    public static final String SECRET_KEY = "lqUjKwgmSwSbHOlS2O9W33XYOTpoFWhv";

    /**
     * 初始化一个AipFace
     */
    public static AipFace client = new AipFace(APP_ID, API_KEY, SECRET_KEY);

    @Bean
    public AipFace getAipFace(){
        return new AipFace(APP_ID, API_KEY, SECRET_KEY);
    }
}
